import request from '../utils/request';


function getOptions(values) {
  const options = {
    method: "POST",
    body: JSON.stringify(values),
    headers: { 'Content-Type': 'application/json' }
  };
  return options;
}

export function saveArticle(values) {
  return request('article/savearticle', getOptions(values));
}

export function getArticleDetail(values) {
  return request('article/getarticledetail', getOptions(values));
}